﻿using UnityEngine;
using System.Collections;

public class DebugTools : MonoBehaviour
{
    public static RaycastHit2D debugRayCast(Vector2 rayOriginPoint, Vector2 rayDirection, float rayDistance, LayerMask mask, bool debug, Color color, bool drawGizmo = false)
    {
        if (drawGizmo)
        {
            Debug.DrawRay(rayOriginPoint, rayDirection * rayDistance, color);
        }
        return Physics2D.Raycast(rayOriginPoint, rayDirection, rayDistance, mask);
    }
}
